<template>
	<div class="cell_auto_fill" :style="{width:data.w/100+'rem',height:data.h/100+'rem'}">
		<div 
		:key="index" 
		v-for="(item,index) in data.items"
		:style="{position:'absolute',left:item.x/100+'rem',top:item.y/100+'rem',width:item.w/100+'rem',height:item.h/100+'rem'}">
			<img  v-lazy="item.img_url" width="100%">
		</div>
	</div>
</template>

<script>
	// 别的app后台是么有提供数据
	export default {
		props: {
			// data 父组件传入子组件的数
			data: {
				type: Object,
				default () {
					return {}
				}
			}
		}
	}
</script>

<style>
	.cell_auto_fill {
		position: relative;

	}
</style>
